#ifndef __MAIN_GAME1__
#define __MAIN_GAME1__

#include "GlobalDefine.h"
#include "ResManager.h"
#include "Tank.h"
#include "EnemyFactory.h"
#include "Explode.h"
#include "MapUnit.h"
#include <iostream>
#include <fstream>
#include <string>

#define LOGFILE "..\\..\\out\\log\\game1.log"
#define MAPFILE "..\\..\\res\\map1\\001.map"

// variable
static HGE	*hge=NULL;
static CResManager *res=NULL;
static CTank *player1=NULL;
static std::list<CTank* >* enemy = NULL;
static std::list<CMapUnit* >* unit = NULL;
static CExplode* explode = NULL;
static float explodeX = 0.0f;
static float explodeY = 0.0f;

// function
static bool DoFrame();
static bool DoRender();
static void InitializeHGE();
static void GameRun();
static void ReleaseHGE();

static void LoadMap();

#endif